package com.example.drawproject.Activity;

import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.util.DisplayMetrics;
import android.util.Log;
import android.view.MotionEvent;
import android.view.View;

import com.example.drawproject.R;
import com.example.drawproject.View.MyView;

public class Home extends AppCompatActivity implements View.OnClickListener {
    protected MyView myView;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_home);
        initView();
        initData();
    }

    protected void initView() {
        DisplayMetrics outMetrics = new DisplayMetrics();
        this.getWindowManager().getDefaultDisplay().getMetrics(outMetrics);
        myView = findViewById(R.id.touch);
       myView.setOnClickListener(this);
    }
    protected void initData(){

    }



    @Override
    public void onClick(View v) {
        Log.d("Draw_targ","click");
    }
}